<?php /*a:2:{s:113:"/www/wwwroot/dianshu/application/index/view/default/../../../plugins/view/expressforkdn/index/public/content.html";i:1568885128;s:117:"/www/wwwroot/dianshu/application/index/view/default/../../../plugins/view/coupon/index/public/goods_detail_panel.html";i:1570967780;}*/ ?>
<?php if(!empty($coupon_list)): ?>
    <!-- 优惠劵面板 -->
    <div class="items plugins-coupon-goods-detail-panel">
        <dt>优惠劵</dt>
        <dd data-am-offcanvas="{target: '#plugins-coupon-offcanvas-goods-detail'}">
            <?php foreach($coupon_list as $v): ?>
                <span class="am-badge am-radius am-margin-right-xs am-margin-bottom-xs" <?php if(!empty($v['bg_color_value'])): ?>style="border:1px solid <?php echo htmlentities($v['bg_color_value']); ?>;color:<?php echo htmlentities($v['bg_color_value']); ?>;"<?php endif; ?>><?php echo htmlentities($v['desc']); ?></span>
            <?php endforeach; ?>
        </dd>
    </div>

    <!-- 优惠劵侧边栏内容 -->
    <div id="plugins-coupon-offcanvas-goods-detail" class="am-offcanvas plugins-coupon-receive-container">
        <div class="am-offcanvas-bar am-offcanvas-bar-flip">
            <div class="am-offcanvas-content plugins-coupon">
                <ul class="am-avg-sm-1 am-avg-md-1 am-avg-lg-1 plugins-coupon-items" data-receive-url="<?php echo PluginsHomeUrl('coupon', 'index', 'receive'); ?>">
                    <?php foreach($coupon_list as $v): ?>
                        <li data-is-operable="<?php echo htmlentities($v['is_operable']); ?>" data-operable-name="<?php echo htmlentities($v['is_operable_name']); ?>" data-coupon-id="<?php echo htmlentities($v['id']); ?>">
                            <div class="item am-cf <?php if(isset($v['is_operable']) and $v['is_operable'] == 0): ?>coupon-disabled<?php endif; ?>" <?php if(!empty($v['bg_color_value'])): ?>style="border:1px solid <?php echo htmlentities($v['bg_color_value']); ?>"<?php endif; ?>>
                                <div class="v-right am-fl am-padding-left-sm am-padding-top-sm am-padding-bottom-sm">
                                    <div class="base am-text-truncate" <?php if(!empty($v['bg_color_value'])): ?>style="color:<?php echo htmlentities($v['bg_color_value']); ?>"<?php endif; ?>>
                                        <span class="symbol">￥</span>
                                        <span class="price"><?php echo htmlentities($v['discount_value']); ?></span>
                                        <span class="unit"><?php if($v['type'] == 0): ?>元<?php else: ?>折<?php endif; ?></span>
                                        <?php if(!empty($v['desc'])): ?>
                                            <span class="desc am-margin-left-sm"><?php echo htmlentities($v['desc']); ?></span>
                                        <?php endif; ?>
                                    </div>
                                    <?php if(!empty($v['use_limit_type_name'])): ?>
                                        <p class="tips am-text-truncate"><?php echo htmlentities($v['use_limit_type_name']); ?></p>
                                    <?php endif; ?>
                                </div>
                                <div class="v-left am-fr am-vertical-align am-text-center <?php if(empty($user) and $v['is_operable'] == 1): ?>login-event<?php endif; ?>" <?php if(!empty($v['bg_color_value'])): ?>style="background:<?php echo htmlentities($v['bg_color_value']); ?>"<?php endif; ?>>
                                    <b class="semi-circle"></b>
                                    <div class="am-vertical-align-middle"><?php echo htmlentities($v['is_operable_name']); ?></div>
                                </div>
                            </div>
                        </li>
                    <?php endforeach; ?>
                </ul>
            </div>
        </div>
    </div>
<?php endif; ?>